<%@ Page language="c#" EnableViewState="false" Codebehind="CreateHub.aspx.cs" AutoEventWireup="false" Inherits="CommunityServer.ControlPanel.HubAdmin.CreateHub" MasterPageFile="~/ControlPanel/Masters/HubAdmin.master" %>

<asp:Content ContentPlaceHolderId="DescriptionRegion" runat="server">
	New Group
</asp:Content>

<asp:Content ContentPlaceHolderId="TaskRegion" runat="Server">
    <CP:ControlPanelSelectedNavigation SelectedNavItem="CreateHub" runat="server" />
	
    <CP:StatusMessage id="Status" runat="server"></CP:StatusMessage>

    <asp:Panel runat="server" ID="DescriptionPanel">
	<DIV class="CommonDescription">
		<CP:ResourceControl runat="server" ResourceName="CP_HubAdmin_SectionEdit_New_Description" />
	</DIV>
	</asp:Panel>

	<CSHub:CreateHubForm runat="server" 
	    DescriptionEditorId="HubDescription"
	    ApplicationKeyTextBoxId="AppKey" 
        CreateButtonId="Create" 
        HubTypeRadioButtonListId="HubType" 
        GroupDropDownListId="HubGroup" 
        NameTextBoxId="HubName"
        CustomValidatorId="CustomValidator"
        id="CreateHubForm1"
        >
        <SuccessActions>
            <CSControl:GoToSiteUrlAction UrlName="hub_ControlPanel_AdminHubs" runat="server" />      
        </SuccessActions>
        <FormTemplate>
        
            <TWC:TabbedPanes id="EditorTabs" runat="server"
	            PanesCssClass="CommonPane"
	            TabSetCssClass="CommonPaneTabSet"
	            TabCssClasses="CommonPaneTab"
	            TabSelectedCssClasses="CommonPaneTabSelected"
	            TabHoverCssClasses="CommonPaneTabHover"
	            >
	            <TWC:TabbedPane runat="server">
		            <Tab><CSControl:ResourceControl runat="server" ResourceName="Hubs_Options" /></Tab>
		            <Content>
                        <div class="CommonFormArea">
                            <asp:CustomValidator runat="server" ID="CustomValidator" />
                        
                            <table cellspacing="0" cellpadding="0" border="0">
	                            <tr>
		                            <td class="CommonFormFieldName">
			                            <strong>Name</strong><br />
			                            Enter a name for the Group.
		                            </td>
		                            <td class="CommonFormField">
			                            <asp:TextBox runat="server" ID="HubName" Columns="40" /> <asp:RequiredFieldValidator runat="server" ControlToValidate="HubName" Cssclass="validationWarning">*</asp:RequiredFieldValidator>
		                            </td>
	                            </tr>
	                            
	                            <tr>
		                            <td class="CommonFormFieldName">
			                            <strong>URL</strong><br />
			                            Unique value used to identify this group. This value should not be changed. White spaces will be changed to "_". Only numbers, letters, "-", and "_" are valid characters.
		                            </td>
		                            <td class="CommonFormField">
			                            <asp:Literal runat="server" ID="AppKeyUrlPrefix" /><asp:TextBox runat="server" ID="AppKey" Columns="20" /><asp:Literal runat="server" ID="AppKeyUrlSuffix" />
		                            </td>
	                            </tr>
	                            
	                            <tr>
	                                <td colspan="2">
		                                <div class="CommonFormFieldName">
		                                    <CSControl:ResourceControl ResourceName="Description" runat="server" Tag="Strong" /><br />
		                                    The description of this group.    
		                                </div>
		                                <div class="CommonFormField"><CSControl:Editor runat="server" ID="HubDescription" Height="150px" /></div>
                                    </td>
		                        </tr>
            	                
                                <tr>
                                    <td class="CommonFormFieldName">
                                        <strong>Group Type</strong><br />
                                        Should the new group be public or private? <asp:RequiredFieldValidator runat="server" ControlToValidate="HubType" Cssclass="validationWarning">*</asp:RequiredFieldValidator>
                                    </td>
                                    <td class="CommonFormField">
                                        <asp:RadioButtonList runat="server" ID="HubType" />
                                    </td>
                                </tr>
                                
                                <CSControl:PlaceHolder runat="server">
                                    <DisplayConditions><CSControl:ControlPropertyValueComparison ComparisonControlId="HubGroup" ComparisonProperty="Items" Operator="GreaterThan" ComparisonValue="1" runat="server" /></DisplayConditions>
                                    <ContentTemplate>
                                        <tr>
                                            <td class="CommonFormFieldName">
                                                <strong>Group Category</strong><br />
                                                Select a category for this group.
                                            </td>
                                            <td class="CommonFormField">
                                                <asp:DropDownList runat="Server" ID="HubGroup" />
                                            </td>
                                        </tr>
                                    </ContentTemplate>
                                </CSControl:PlaceHolder>
                                
                            </table>
                        </div>
                    </Content>
                </TWC:TabbedPane>
            </TWC:TabbedPanes>
            
            <p class="PanelSaveButton DetailsFixedWidth">
		        <cp:ResourceButton id="Create" runat="Server" ResourceName="Save" />
	        </p>
                    
        </FormTemplate>
    </CSHub:CreateHubForm>
	
</asp:Content>
